package edu.xlh.travel.service;

import com.alibaba.fastjson.JSONArray;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.ScoreDetail;
import edu.xlh.travel.pojo.querypojo.QueryScoreDetail;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

public interface ScoreDetailService {
    void addScoreDetails(ScoreDetail scoreDetail);

    void scoreOperation(String userId , Integer qty);

   /* Result findScoreDetailByUserId(ScoreDetail scoreDetail, HttpSession session);*/

    Result findAllScoreDetail(int page, int limit, String userId, HttpSession session);

    Result findScoreDetailByUserId(int page  , int limit , String userId, HttpSession session);

    Result batchDelete(JSONArray jsonArray, HttpSession session);

    Result deleteById(String id, HashMap hashMap, HttpSession session);

    Result QueryScoreDetailByCondition(Integer page, Integer limit, QueryScoreDetail queryScoreDetail, HttpSession session);

    Result sign(HttpSession session);
}
